package main

import (
	"fmt"
	"runtime"
	"time"
)

func testGoroutine(s string) {
	fmt.Println(" hello test goroutine: " + s)
}

func main() {
	time.Sleep(1000000)
	testGoroutine("main")
	go testGoroutine("sub")
	runtime.Gosched()
	testGoroutine("main end")
}
